import user from './modules/user'
import layout from './modules/layout'
import errorStore from './modules/errorStore'
/**
 * 统一导出 useStore 方法
 * const store = useStore()
 * store.user.userinfo
 */
export function useStore() {
  return {
    user: user(),
    layout: layout(),
    errorStore: errorStore()
  }
}
